package com.ruoyi.fapp.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.model.LoginBody;
import com.ruoyi.fapp.service.ApPublishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/app/push")
public class ApPublishController extends BaseController {


    @Autowired
    ApPublishService apPublishService;


    //获取发布列表
    @PostMapping("/getPublishList")
    public AjaxResult getPublishList(){
        apPublishService.getPublishList();
        return success();
    }




    //发布消息
    @PostMapping("/publish")
    public AjaxResult publish(){
        apPublishService.publish();
        return success();
    }









}
